package com.ruoyi.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.order.domain.OrderTicket;

import java.util.List;

/**
 * 影票订单Mapper接口
 *
 * @author HHAOYU
 * @date 2020-12-14
 */
public interface OrderTicketMapper extends BaseMapper<OrderTicket> {
    /**
     * 查询影票订单
     *
     * @param id 影票订单ID
     * @return 影票订单
     */
    public OrderTicket selectOrderTicketById(Long id);

    /**
     * 查询影票订单列表
     *
     * @param orderTicket 影票订单
     * @return 影票订单集合
     */
    public List<OrderTicket> selectOrderTicketList(OrderTicket orderTicket);

    /**
     * 新增影票订单
     *
     * @param orderTicket 影票订单
     * @return 结果
     */
    public int insertOrderTicket(OrderTicket orderTicket);

    /**
     * 修改影票订单
     *
     * @param orderTicket 影票订单
     * @return 结果
     */
    public int updateOrderTicket(OrderTicket orderTicket);

    /**
     * 删除影票订单
     *
     * @param id 影票订单ID
     * @return 结果
     */
    public int deleteOrderTicketById(Long id);

    /**
     * 批量删除影票订单
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteOrderTicketByIds(Long[] ids);
}
